package com.bg.data;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Version;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

@Data
@Document(collection = "user")
public class User implements Serializable {

    @Id
    @Field("id")
    private int id;

    @Field("name")
    private String name;

    @Field("address")
    private String address;
}
